import request from '../axios/index';

export function getmassage(data) {
    return request({
        method: 'post',
        url: '/api/manage/qrCode/get',
        data
    });
}//分页

export function getarea(id) {
    return request({
        method: 'post',
        url: '/api/manage/area/'+id,
    });
}//区县
export function PositionList() {
    return request({
        method: 'post',
        url: '/api/manage/position/selectPositionList',
    });
}//人员职位
export function save(data) {
    return request({
        method: 'post',
        url: '/api/manage/qrCode/save',
        data
    });
}//发送二维码
export function del(data) {
    return request({
        method: 'post',
        url: '/api/manage/qrCode/delete',
        data
    });
}//批量删除二维码
export function create(id) {
    return request({
        method: 'post',
        url: '/api/manage/qrCode/create/'+id,
        responseType: 'arraybuffer',
    });
}//生成二维码
export function download(id) {
    return request({
        method: 'post',
        url: '/api/manage/qrCode/create/'+id,
        responseType: 'blob',
    });
}//生成二维码
